/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package phan.connection;

/**
 *
 * @author bailleurs services
 */
public class Catalog {
    String name="";

public int getCatalog(){
    int i=0;
    if(name.equals("INFORMATIQUE"))
        i=1;
  if(name.equals("IMAGE&SON"))
        i=2;
 if(name.equals("PHOTO&CAMERASCOPE"))
        i=3;
    if(name.equals("PETIT&ELECTROMENAGER"))
        i=4;
 if(name.equals("GROS&ELECTROMENAGER"))
        i=5;
 if(name.equals("JARDIN"))
        i=6;
 if(name.equals("BRICOLAGE"))
        i=7;
 if(name.equals("MOTO&SCOUTER"))
        i=8;
 if(name.equals("TELEPHONE&GPS"))
        i=9;
    return i;
}
public Catalog(String name) {
    this.name=name;
}
}
